The Dreamweaver JavaScript API > String manipulation functions > dreamweaver.doURLEncoding() |
![]() ![]() ![]() |
Availability
Dreamweaver 1.0
Description
This function takes a string and returns a URL-encoded string by replacing all spaces and special characters with specified entities.
Arguments
stringToConvert
Returns
A URL-encoded string.
Enabler
None.
Example
If the URL.value is "My URL-encoded string":
var URL = dw.doURLEncoding(theURL.value);
returns "My%20URL-encoded%20string"
![]() ![]() ![]() |